package model;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * User: Casper
 * Date: 19-04-12
 * Time: 11:25
 * To change this template use File | Settings | File Templates.
 */
/*
 * Tænkte på at gemme tråde i et forum i en ArrayList, for at holde det simpelt og spare på kode når der skal findes ud af hvilke tråde der hører til et bestemt forum 
 * - Tommy, 19/04
 */

public class Forum {
    private String title;
    private ArrayList<Thread> threads;
    
    public Forum(String title, ArrayList<Thread> threads) {
        this.title = title;
        this.threads = threads;
    }
    
    public void addThread(Thread thread) {
        threads.add(thread);
    }
    
    public void removeThread(Thread thread) {
        threads.remove(thread);
    }
    
    public ArrayList<Thread> getThreads() {
        return threads;
    }
}
